//
//  ImageDataSource.swift
//  TheWatermark
//
//  Created by sharui on 2021/6/7.
//

import Foundation
import SwiftUI
struct ImageDataSource: Identifiable {
    var selected: Bool = true
    var name: String
    var image: NSImage
    var id: Int
    var path: String
    
    static func allowAdd(imageData :ImageDataSource, list:[ImageDataSource]) -> Bool {
        
        let a = list.filter({ data in
          return data.id == imageData.id
        })
        return a.count == 0
    }
}


